﻿using System.Collections.Generic;
using ZilLion.Service.TaskPlatform.Domain.Entity;

namespace ZilLion.Service.TaskPlatform.Domain.Respository.Interface
{
    public interface INodeInfoRespository
    {
        /// <summary>
        /// 获取所有的Node信息
        /// </summary>
        /// <returns></returns>
        IEnumerable<NodeInfoEntity> GetNodeInfoEntities();
        /// <summary>
        /// 根据节点ID 获取节点信息
        /// </summary>
        /// <param name="nodeId"></param>
        /// <returns></returns>
        NodeInfoEntity GetNodeInfoByNodeId(string nodeId);

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="node"></param>
        void AddNodInfo(NodeInfoEntity node);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="node"></param>
        void MotifyNodeInfo(NodeInfoEntity node);
    }
}